<?php
  class ContactController extends Controller
  {
  /**
	 * Declares class-based actions.
	 */
	public function actions()
	{
		return array(
			'captcha'=>array(
				'testLimit'=>1,
				'class'=>'CCaptchaAction',
				'backColor'=>0xFFFFFF,
				'width'=>110,
				'height'=>55,
			),
			'page'=>array(
				'class'=>'CViewAction',
			),
		);
	}
  	  public function actionIndex()
  	  {
  	  	  		// Refesh Captcha
		$captchaAction = $this->createAction('captcha');
		$captchaAction->getVerifyCode(true);

		$contact= new Contact();
          $this->render('index',array('contact'=>$contact));
  	  }

  }
